package com.sita.tboard.ui.activity;

import android.os.Bundle;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;

import com.sita.bike.R;
import com.sita.tboard.ActivityBase;
import com.sita.tboard.ui.fragment.MineFragment;

import butterknife.ButterKnife;
import butterknife.OnClick;

public class MyActivity extends ActivityBase {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_my);
        ButterKnife.bind(this);

        FragmentManager fm = getSupportFragmentManager();
        FragmentTransaction ft = fm.beginTransaction();
        ft.replace(R.id.fragment_container, new MineFragment(), "MINE");
        ft.commit();
    }

    @OnClick(R.id.back_button)
    void backBtnClick(){
        finish();
    }
}
